package com.lxyk.service.imp;

import com.lxyk.dao.Hello;
import com.lxyk.pojo.User;
import com.lxyk.service.Service;

public class ServiceImpl implements Service {

    //set注入
    private Hello hello;
    public User user;

    public void setHello(Hello hello1)
    {
        this.hello = hello1;
    }

    // 构造器注入
    public ServiceImpl(User user1) {
        this.user = user1;
    }

    @Override
    public void ServiceShou() {
        hello.shou();
        System.out.println("----------------------");

    }
}
